function [ ind ] = ll_feat_func( y1, y2, x, i, seg, tags )
    ind = 1;
    %y2 = y_i+1
    %y1 = y_i
    if(y1 ~= tags(1) || y2 ~= tags(2))
        ind = 0;
        return;
    end
    
    i = i+1;
    k = 1;
    for j = size(seg,2)-1:-1:0
        if(i-j < 1)
            ind = 0;
            return;
            %break;
        end
        
        if( x(i-j) ~= seg(k) )
            ind = 0;
            return;
        end
        k = k + 1;
    end
end

